import request from '@/utils/request'

// 查询部门列表
export function findAll(query) {
  return request({
    url: '/b/project/category/findAll',
    method: 'GET'
  })
}

// 新增分类
export function saveCate(data) {
  return request({
    url: '/b/project/category/saveCate',
    method: 'POST',
    data:data
  })
}

// 修改分类
export function modifyCate(data) {
  return request({
    url: '/b/project/category/modifyCate',
    method: 'POST',
    data:data
  })
}

// 删除分类
export function delCategory(cateId) {
  return request({
    url: '/b/project/category/delCategory?cateId='+cateId,
    method: 'GET'
  })
}

// 修改部门
export function findParentId(parentId) {
  return request({
    url: '/b/project/category/findParentId?parentId='+parentId,
    method: 'GET'
  })
}

// 查询部门列表
export function findTree() {
  return request({
    url: '/b/project/category/findTree',
    method: 'GET'
  })
}

